package cn.wanho.util;

import com.alibaba.excel.context.AnalysisContext;
import com.alibaba.excel.event.AnalysisEventListener;

import java.util.ArrayList;
import java.util.List;

public class TemplatePaperListener extends AnalysisEventListener<TemplatePaperEntity> {
    private List<TemplatePaperEntity> list = new ArrayList<>();


    @Override
    public void invoke(TemplatePaperEntity data, AnalysisContext analysisContext) {
        list.add(data);
    }

    @Override
    public void doAfterAllAnalysed(AnalysisContext analysisContext) {

    }
    public List<TemplatePaperEntity> getData() {
        return list;
    }
}
